package com.scau.util;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;



public class GetBeanUtil {
	private static ApplicationContext ctx=new ClassPathXmlApplicationContext("beans.xml");

	public static Object getBean(String bean){
		return ctx.getBean(bean);
	}
}
